package com.zp.config;

import com.zp.callback.CloseCallbackImpl;
import com.zp.callback.RegisterCallbackImpl;
import com.zp.service.RegisterService;
import com.zp.service.RenewalService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zp
 * @description
 * @created 2021/11/24 12:37
 */
@Configuration
public class MyCloudAutoConfiguration {
    @Bean
    public MyCloudConfig myCloudConfig(){
        return new MyCloudConfig();
    }

    @Bean
    public ServerConfig serverConfig(){
        return new ServerConfig();
    }

    @Bean
    public RegisterService registerService(){
        return new RegisterService();
    }

    @Bean
    public CloseCallbackImpl closeCallback(){
        return new CloseCallbackImpl();
    }
    @Bean
    public RegisterCallbackImpl registerCallback(){
        return new RegisterCallbackImpl();
    }
    @Bean
    public RenewalService renewalService(){
        return new RenewalService();
    }
}
